export const tableFormDataDefault = {
    uniqueId: "id",
    rowId: "id",
    height: "",
    maxHeight: "",
    autoResize: false,
    syncResize: false,
    stripe: true,
    border: true,
    round: true,
    size: "",
    align: "left",
    headerAlign: "left",
    footerAlign: "left",
    showHeader: true,
    showFooter: false,
    showOverflow: "",
    showHeaderOverflow: "",
    showFooterOverflow: "",
    keepSource: false,
    emptyText: "没有更多数据了",
    extraConfig: "",
    remark: "",
    extParams: "",
    rowclassName: "",
    cellClassName: "",
    headerRowClassName: "",
    headerCellClassName: "",
    footerRowClassName: "",
    footerCellClassName: "",
    footerMethod: "",
};
export const formConfigDataDefault = {
    span: 5,
    align: "",
    size: "",
    titleAlign: "",
    titleWidth: "",
    titleColon: 0,
    titleAsterisk: 1,
    titleOverflow: "",
    className: "",
    collapseStatus: 1,
    customLayout: 0,
    preventSubmit: 0,
    enabled: 1,
    remark: "",
    items: [],
};
export const pageFormDataDefault = {
    layouts: "",
    currentPage: 1,
    pageSize: 10,
    pagerCount: 7,
    pageSizes: [10, 15, 20, 50, 100],
    align: "left",
    border: 0,
    background: 0,
    perfect: 0,
    className: "",
    autoHidden: 0,
    iconPrevPage: "",
    iconJumpPrev: "",
    iconJumpNext: "",
    iconnextPage: "",
    iconJumpMore: "",
    enabled: 1,
};
export const editFormDataDefault = {
    trigger: "",
    enabled: 1,
    mode: "cell",
    showIcon: 1,
    showStatus: 0,
    showUpdateStatus: 0,
    showInsertStatus: 0,
    showAsterisk: 1,
    autoClear: 1,
    icon: "",
    remark: "",
    beforeEditMethod: "",
};
export const proxyDataDefault = {
    enabled: true,
    autoLoad: true,
    paramsChangeLoad: true,
    message: true,
    seq: false,
    sort: false,
    filter: false,
    form: false,
    props: {
        list: "list",
        result: "rows",
        total: "total",
        message: "message",
    },
    query: {
        api: "",
        beforeQuery: "",
        afterQuery: "",
        method: "",
    },
    queryAll: {
        api: "",
        beforeQueryAll: "",
        afterQueryAll: "",
        method: "",
    },
    delete: {
        api: "",
        beforeDelete: "",
        afterDelete: "",
        method: "",
    },
    insert: {
        api: "",
        beforeInsert: "",
        afterInsert: "",
        method: "",
    },
    update: {
        api: "",
        beforeUpdate: "",
        afterUpdate: "",
        method: "",
    },
    save: {
        afterSave: "",
    },
};
export const toolbarDataDefault = {
    size: "medium",
    loading: false,
    perfect: false,
    className: "",
    import: true,
    export: true,
    print: false,
    refresh: true,
    custom: true,
    buttons: "",
    tools: "",
    enabled: true,
    zoom: true,
    slots: {
        buttons: "",
        tools: "",
    },
    printDesign: {
        setPrintTemplate: true,
        previewPrint: true,
        directPrint: true,
        printDataQueryBefore: "", //数据查询之前处理函数
        printDataQueryAfter: "", //数据查询之后处理函数
        printDataQueryPort: "", //打印时数据查询接口
        setPrintTemplateConfig: {
            disabled: true,
            content: "设置模板",
            size: "medium",
            // 点击按钮时调用，返回true时打开设计页面反之不打开
            beforeClick: "",
            // 拖拽面板查询接口
            queryProvider: "",
            // 模板查询接口，返回模板数据
            queryPanel: "",
            // 保存模板时调用接口
            // saveDesign: "",
            extConfig: {},
        },
        // 公共的查询接口，如果在打印只能单独设置了则优先使用打印中的
        printApi: {
            queryPanel: "",
            // 打印数据查询接口
            // queryPrintData: "",
        },
        previewPrintConfig: {
            content: "预览打印",
            // 模板查询接口
            queryPanel: "",
            // 打印数据查询接口
            // queryPrintData: "",
            params: {
                printerName: "测试",
                printTitle: "测试",
            },
            extConfig: {},
        },
        directPrintConfig: {
            content: "直接打印",
            // 模板查询接口
            queryPanel: "",
            // 打印数据查询接口
            // queryPrintData: "",
            extConfig: {},
        },
    },
};
